<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
require_once("../../isa-lib/nusoap/nusoap.php");
include "../../isa-lib/isa-function/prax.php";
//Ham thuc hien tao cay
include_once("../../isa-lib/isa-function/class_xslt.php");
// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
//Lay cac thong so de ket noi voi CSDL
include "../../connect.php";
include "../../connect_ado.php";
include "../handle/handler_function.php";		// nieuvv--270808---lay cac ham dung chung
include "../../4s/config/record/all/config.php";
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "../../onegate_function.php";
// nieuvv--101108--lay danh sach cac loai ho so co cau hinh trong danh muc cong viec dac biet
include "../../qry_all_spec_worktype.php";	
include "../../record/spec_work/onegate_function_spec_work.php";
//the-end-nieuvv-101108---
// Khoi tao cac bien SESSION chua quyen modul, function cua NSD
include "../../init_session.php";
include "../handle/const.php";
include "../result/const.php";
include "app_local.php";
include "const.php";
include_once $FOLDER_DEVEDIT_CLASS;
// Lay cac hang so cua chuc nang nay
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../record-lib/qry_all_recordtype_by_staff.php";//Leav_21/05/2008 them
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}
?>
<script src="../../isa-lib/isa-js/isa_util.js" ></script>
<script src="../handle/js_record_handle.js" ></script>
<script src="js_calendar.js" ></script>
<script src="js_record.js" ></script><?php
//echo $fuseaction.'<br>';
switch($fuseaction){	
	//nieuvv--111108-cong viec dac biet
	case "DISPLAY_ALL_RECORD_SPEC_WORK";
		$v_type_spec_work = "";
		if(isset($_REQUEST['type_spec_dsp']))
		{
			$v_type_spec_work = $_REQUEST['type_spec_dsp'];
		}
		if ($v_type_spec_work == "")
		{
			if(isset($_REQUEST['hdn_spec_worktype']))
			{
				$v_type_spec_work = $_REQUEST['hdn_spec_worktype'];
			}
		}
		
		for($j = 0 ; $j < $v_cout; $j ++)
		{
			for($i = 0 ; $i < $v_count_spec_worktype ; $i ++)
			{											
				if($arr_all_spec_worktype[$i]['C_UPDATE_METHOD_START'] == 'LEFT_MODULE_UPDATE_RECIEVE'&& $arr_all_spec_worktype[$i]['FK_WORKTYPE_START'] == $arr_list[$j][0]&& $arr_all_spec_worktype[$i]['PK_SPEC_WORKTYPE'] == $v_type_spec_work)
				{
					$v_name_spec_worktype = _getname($arr_list,$arr_all_spec_worktype[$i]['FK_WORKTYPE_START']);
					break;
				}
			}
		}
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "MOI_TIEP_NHAN";
		$v_worktype ="TIEP_NHAN";
		$v_title = RECORD_LIST_LABEL." ".$v_name_spec_worktype;
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record_nieuvv.php";
		include "../record-lib/dsp_all_record_nieuvv.php";
		break;
	case "UPDATE_RECORD_SPEC";
		include "act_update_record_spec_nieuvv.php";
	//the-end-nieuvv-111108---
	case "DISPLAY_ALL_RECORD_FOR_NEW";
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "MOI_TIEP_NHAN";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NEW_TITLE;
		$v_worktype = "TIEP_NHAN";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
//chuongnlt begin///
case "DISPLAY_ALL_SHARING_RECORD";
	//echo "HI";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 10 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_SHARING_TITLE;
		$v_worktype = "PHAN_CONG";
		$v_show_date = false;
		$v_receive_date = "";
		include "qry_all_recordtype_by_staff_vunh.php";
		include "qry_all_record.php";
		include "dsp_all_record.php";
		break;
case "DISPLAY_SHARING_RECORD";
//echo "hi";
		include "qry_all_selected_id_record.php";
		include "qry_single_recordtype.php";
		include "dsp_sharing_record.php";
		break;
case "DISPLAY_ALL_SHARING_RECORD_CHANGLE";
	//echo "hii";
		$v_detail_status_compare = "112,11,21,31";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_SHARING_CHANGLE_TITLE;
		$v_worktype = "THAY_DOI_NGUOI_THU_LY";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff_vunh.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;

case "UPDATE_SHARING_RECORD";
		include "act_update_sharing_record.php";
		break;	
case "DISPLAY_ALL_STAFF_BY_UNIT";
		include "dsp_all_staff_by_unit.php";
		break;

//chuongnlt end //


/*//-------- NIEUVV hien thi danh sach tre hen hay khong tre hen
	case "DISPLAY_ALL_RECEIVED_RECORD_RELAY";
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "MOI_TIEP_NHAN";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NEW_TITLE;
		$v_worktype = "TIEP_NHAN";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
//--------------------------------------------------------- */
// Hien thi danh sach da sap xep theo cmnd tang dan	
	case "DISPLAY_ALL_RECORD_FOR_ARRANGE";
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "MOI_TIEP_NHAN";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_FOR_ARRANGE";
		$v_title = CONST_RECORD_RECEIVE_NEW_TITLE;
		$v_worktype = "TIEP_NHAN";
		$v_show_date = false;
		$v_receive_date = "";
		
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "qry_single_recordtype.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_RECORD_FOR_SUPPLYMENT";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 20 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD_SUPPLYMENT";
		$v_title = CONST_RECORD_RECEIVE_SUPPLYMENT_TITLE;
		$v_worktype = "NHAN_HO_SO_BO_SUNG";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_SINGLE_RECORD";
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	case "DISPLAY_SINGLE_RECORD_CONTENT";
		$v_title = CONST_RECORD_CONTENT_TITLE;
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	//leav_update:12082008
	case "DISPLAY_RECORD_HANDOVER_TRANH_CHAP";
		$v_title=CONST_LIST_CONFLICTRECORD;
		$v_xml_file_list='danh_sach_ho_so_tranh_chap.xml';
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_worktype = "TRANH_CHAP";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "qry_all_record_tranh_chap.php";
		include "../record-lib/dsp_single_record_handover_tranh_chap.php";
		break;
	//leav_update:12082008_end
	case "DISPLAY_SINGLE_RECORD_SUPPLYMENT";
		$v_title = CONST_RECORD_SUPPLYMENT_UPDATE_TITLE;
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	case "DISPLAY_ALL_RECORD_SOLVING";
		$v_detail_status_compare = " And C_DETAIL_STATUS <> 20 ";
		$v_status_list = "DANG_THU_LY,TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK_VUNH";	//---Upadted bu VuNH - 130707
		$v_title = CONST_RECORD_RECEIVE_SOLVING_TITLE;
		$v_worktype = "THU_LY";
		$v_show_date = false;
		$v_receive_date = "";
		$v_xml_file_list = "danh_sach_ho_so_dang_giai_quyet.xml";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;		
	case "PRINT_RECORD_RECEIPT";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_record_receipt.php";
		break;
	case "UPDATE_RECORD";
		$v_list_conflict=$_REQUEST['hdn_record_id_list_20'];//Leav_09082008
		include "act_update_record_vunh.php";
		break;
	case "DELETE_RECORD";
		include "act_delete_record.php";
		break;
	case "DISPLAY_RECORD_HANDOVER";
		include "qry_single_recordtype.php";
		include "dsp_single_record_handover.php";
		break;
	case "UPDATE_RECORD_HANDOVER";
		include "act_update_record_handover.php"; 
		break;
	//NIEUVV--161208---chuyen cho can bo luan chuyen ho so
	case "UPDATE_LUANCHUYEN_HANDOVER";
		include "act_update_luanchuyen_handover.php"; 
		break;
	//THE-END-NIEUVV--161208--
	//Leav_begin_update_16 h 12,11/06/2008,CB TN&TKQ ra thong bao thue,continue_begin:13/06/2008,
	case "DISPLAY_RECORD_HANDOVER_THUE";
		$code_notify="1010";
		include "qry_single_recordtype.php";
		include "dsp_single_record_handover_notify_tax.php";
		break;
	case "UPDATE_RECORD_HANDOVER_THUE";
		$code_notify="1010";
		include "act_update_record_handover_notify_tax.php";
		break;
	
	case "DISPLAY_RECORD_HANDOVER_PHAT";
		$code_notify="1011";
		include "qry_single_recordtype.php";
		include "dsp_single_record_handover_notify_tax.php";
		break;
	
	case "UPDATE_RECORD_HANDOVER_PHAT";
		include "act_update_record_handover_notify_tax.php";
		break;
	case "UPDATE_RECORD_HANDOVER_BANGIAO_THUE";
		$v_worktype="NOP_THUE";
		include "act_update_record_handover.php";
		break;
		//continue_begin:14/06/2008
	//update_15092008:Nhan bien lai thue tu co quan thue
	case "RECEIVE_BLAI_THUE_TU_CQUAN";
		include "qry_single_recordtype.php";
		include "dsp_single_record_handover_nhan_bien_lai_thue_tu_cquan_thue.php";
		break;
	case "UPDATE_RECEIVE_BLAI_THUE_TU_CQUAN";
		include "act_update_record_handover_nhan_thongbao_thue_tu_cquan_thue.php";
		break;
	//end_15092008
	case "UPDATE_RECORD_HANDOVER_BANGIAO_PHAT";
		$v_worktype="NOP_PHAT";
		include "act_update_record_handover.php";
		break;
		//continue_end:14/06/2008
	//Leav_end_update_16 h 12,11/06/2008 ,continue_end:13/06/2008
	case "UPDATE_RECORD_LIST_CHECKED";
		include "act_update_record_list_checked.php";
		break;
	case "PRINT_RECORD_HANDOVER";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_record_handover_by_printing.php";
		break;
	case "DISPLAY_LIST_RECORD_MOVE_TO_RESULT";
		$v_list_status = 'MOI_TIEP_NHAN';		
		include "qry_all_record_checked.php";
		include "dsp_single_record_move_result_to_result.php";
		break;
		
	/////////////////////////////////////////////////////////
	//Them cac fuseaction ben handle vao
	case "DISPLAY_ALL_RECORD_WORK_VUNH";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_record_work.php";
		include "../handle/dsp_all_record_work_vunh.php";
		break; 
	case "DISPLAY_ALL_RECORD_WORK";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_record_work.php";
		include "../handle/dsp_all_record_work.php";
		break;
	case "DISPLAY_NAME_RECEIPT";
		include "dsp_name_receipt.php";
		break;
	case "DISPLAY_SINGLE_RECORD_WORK";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_worktype.php";
		include "../handle/qry_single_record_work.php";
		include "../handle/dsp_single_record_work.php";
		break;
	case "DELETE_RECORD_WORK";
		include "../handle/act_delete_record_work.php"; 
		break;
	case "UPDATE_RECORD_WORK";
		include "../handle/act_update_record_work.php";
		break;
	case "DISPLAY_ALL_RECORD_DOC";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_record_doc.php";
		include "../handle/dsp_all_record_doc.php";
		break;
	case "DISPLAY_SINGLE_RECORD_DOC";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_single_record_doc.php";
		include "../handle/dsp_single_record_doc.php";
		break;
	case "UPDATE_RECORD_DOC";
		include "../handle/act_update_record_doc.php";
		break;
	case "DELETE_RECORD_DOC";
		include "../handle/act_delete_record_doc.php"; 
		break;
	case "DISPLAY_SINGLE_IDEA";
		include "../handle/qry_single_idea.php";
		include "../handle/dsp_single_idea.php";
		break;
	case "DISPLAY_ALL_IDEA";
		include "../record-lib/qry_single_record.php";
		include "../handle/qry_all_idea.php";
		include "../handle/dsp_all_idea.php";
		break;
	case "DELETE_IDEA";
		include "act_delete_idea.php"; 
		break;
	case "UPDATE_IDEA";
		include "../handle/act_update_idea.php";
		break;
	case "DISPLAY_SINGLE_LICENSE";
		include "../handle/qry_single_license.php";
		include "../handle/dsp_single_license.php";
		break;
	case "UPDATE_LICENSE";
		include "../handle/act_update_license.php";
		break;
	//////////////////////////////////////////////////////////////////
	//				DUYET HO SO DANG KY QUA MANG
	//////////////////////////////////////////////////////////////////
	case "DISPLAY_ALL_NET_RECORD_FOR_INSPECTION";
		//$v_detail_status_compare = " And C_DETAIL_STATUS = 20 ";
		$v_status_list = "0";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_NET_RECORD_FOR_INSPECTION";
		$v_title = "Danh sách hồ sơ đăng ký qua mạng chờ duyệt";
		//$v_worktype = "NHAN_HO_SO_BO_SUNG";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../customer/qry_all_record.php";
		include "../customer/dsp_all_record.php";
		break;
	case "DISPLAY_SINGLE_NET_RECORD_FOR_INSPECTION";
		$v_worktype = "INSPECTION";
		$v_title = "Duy&#7879;t h&#7891; s&#417; &#273;ang k&#253; qua m&#7841;ng";		
		include "../customer/qry_single_record.php";
		include "../customer/dsp_single_customer_record.php";
		break;
	///////////////////////////////////////////////////////////////////
	case "DISPLAY_MULTIPLE_RECORD_FOR_SEND_MAIL";
		include "../result/qry_all_selected_id_record.php";
		include "../result/dsp_all_record_for_send_mail.php";
		break;
	case "SENDING_EMAIL";
		include "../result/act_send_email.php";
		break;
	//////////////////////////////////////////////////////////////////
	//// In Nhn H? So - VuNH ///////////////////////////////////////
	case "PRINT_RECORD_RECEIPT_LABEL";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_record_receipt_label.php";
		break;
	/////////////////////////////////////////////////////////////////
	//Leav:Hien Thi DANH SACH HO SO THONG BAO PHAT
	case "DISPLAY_ALL_RECORD_NOTIFY_PHAT";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 27 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NOTIFY_PHAT;
		$v_worktype = "NOTIFY_PHAT";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	//Leav_begin_17112008
	/*
	case "DISPLAY_ALL_RECORD_NOTIFY_TAX_TU_CQUAN";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 109 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NOTIFY_TAX_TU_CQUAN;
		$v_worktype = "NOTIFY_TAX_TU_CQUAN";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
		*/
	//Leav_end_17112008
	case "DISPLAY_ALL_RECORD_NOTIFY_TAX";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 26 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NOTIFY_TAX;
		$v_worktype = "NOTIFY_TAX";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_NOTIFY";
		$v_title = CONST_RECORD_RECEIVE_NOP_TAX_AND_PHAT;
		$v_worktype="TN_RTB_THUE";
		include "../record-lib/qry_single_record.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "qry_all_notify.php";
		include "dsp_single_notify.php";
		break;
	case "DISPLAY_NOTIFY_PHAT"; 
		$v_title = CONST_RECORD_RECEIVE_NOP_TAX_AND_PHAT;
		$v_worktype="TN_RTB_PHAT";
		include "../record-lib/qry_single_record.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "qry_all_notify.php";
		include "dsp_single_notify.php";
		break;
	case "UPDATE_RECORD_NOTIFY_TAX_TN";
		$v_request_id_record=$_REQUEST['hdn_record_id_list'];
		include "act_update_record_work_TN_thue.php";
		break;
	case "DISPLAY_ALL_RECORD_DA_NOP_PHAT";
		$v_title = CONST_RECORD_DA_NOP_PHAT_TITLE;
		$v_detail_status_compare = " And C_DETAIL_STATUS = 29 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK_VUNH";
		$v_title = CONST_RECORD_DA_NOP_PHAT_TITLE;
		$v_worktype = "DANH_SACH_HS_DA_NOP_PHAT";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_RECORD_DA_NOP_THUE";
		$v_title = CONST_RECORD_DA_NOP_THUE_TITLE;
		$v_detail_status_compare = " And C_DETAIL_STATUS = 28 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK_VUNH";
		$v_title = CONST_RECORD_DA_NOP_THUE_TITLE;
		$v_worktype = "DANH_SACH_HS_DA_NOP_THUE";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	//Leav_end
	//DatCQ: Hien thi dialog de xac nhan ky nhan ho so cho bo sung
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TN_CBS";
		$v_result = _CONST_NHSG_TN_CBS;
		$v_worktype = "NHSG_TN_CBS";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TN_CBS;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Hien thi dialog de xac nhan ky nhan ho so tiep nhan thong bao phat
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TN_TBP";
		$v_result = _CONST_NHSG_TN_TBP;
		$v_worktype = "NHSG_TN_TBP";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TN_TBP;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Hien thi dialog de xac nhan ky nhan ho so tiep nhan thong bao thue
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TN_TBT";
		$v_result = _CONST_NHSG_TN_TBT;
		$v_worktype = "NHSG_TN_TBT";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TN_TBT;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "dsp_sign_receipt_record.php";
		break;		
	case "UPDATE_SIGN_RECEIPT_RECORD";
		include "act_update_sign_receipt_record.php";
		break;			
	//////////////////////////////////////////////////////////////////
	default:
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "MOI_TIEP_NHAN";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_RECEIVE_NEW_TITLE;
		$v_worktype = "TIEP_NHAN";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "qry_single_recordtype.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>
